package xin.ssm.jxc.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONArray;

import xin.ssm.jxc.model.Categorys;
import xin.ssm.jxc.services.ICategoryService;
import xin.ssm.jxc.util.Result;

@Controller
@RequestMapping("/category")
public class CategoryController {
	@Resource
	private ICategoryService categoryService;
	
			//查询所有商品类别
			@RequestMapping("/findallcategory")
			@ResponseBody
			public List<Categorys> findCategory() {
				
				List<Categorys> userList = categoryService.findCategory();
				return userList;
			}
	
}
